All right, so say, for instance, you're working on a file.
It's a large file.
This is just happens to be a small file and I'm working on it and it's like a large configuration file.
And you need to add at the top and something near the bottom or in the middle.
But you don't, you know, because basically you want to make sure that everything correlates and you
want to make sure that your configuration file actually makes sense and is readable.
So how would you be able to do that?
Well, Vim has the ability to do what's called a split screen, or Paines, if you want to call it,
just like you would in a terminal multiplier, multiplexed.
And in order to do that, you just had Colon Aspey and that will split the frame.
However, it is either Europea vertical or horizontal, depending upon what you have in your Weimar's
file.
And we'll get to how to edit and create a democracy file later on in the course.
So I'm going to split this and you can see I have to open.
So but, you know, that's how helpful if you have, you know, one file that you want to work on,
but what if you want to work on multiple files at the same time?
So I'm going to quit on that one, OK?
And I'm going to vertical split another file and open up another file.
So a VSP vertical split a different file altogether.
OK, so now I have two files open in a split.
How do I navigate between the left and the right.
Well control w and then you're OK and that will navigate between the right pain and the left pane.
So control w arrow key the other direction and navigate it to the left pain control w arrow key and
have navigated to the right pain.
OK, but I can split this as well.
I can split this file so I'm going to hit split and I can see there's two so I can basically work on
one file in a split and another file on the left side completely.
So basically if you have one large file that you want to work on in a split screen, you can do that
quite easily in then by using split screens.
If you wanted to quit out of one of them or one of the pains, you would just hit cue and that would
quit it.
Now, all of this is going into a buffer and we're going to discuss buffers very, very shortly and
we'll see what exactly, you know, how you can navigate within the buffer.
So you don't actually necessarily have to do this.
But this is one way it's so you can work between multiple files.
So it's control w arrow key or hk h j k l navigating between the screens so you can split different
panes and open up different files.
So if I wanted to do a vertical split screen and the pain to the right and open up another file, I
can do just that by doing VSP and then the file name and that does a vertical split screen.
So I have three vertical split screens.
OK, so if I wanted to split that middle pane right into two, I just hit Aspey split and that will
do a horizontal split, which is according to my VM democracy file.
What is the default and basically to navigate between you either use the arrow key khk h j k l you know,
the navigational as you would with any type of file, you would basically have control w and then navigate
between each split by using the arrow keys or however you would navigate between the file using H J
K and that, and you can just keep splitting and splitting and splitting.
And I don't recommend you doing that unless you have like a 60 or 80 inch screen monitor and you can
actually see what you're doing or you know, it's just it's going to become cumbersome and you can basically
go really overboard with this and split and split and split and split.
So obviously, you know, use your good judgment here and don't just do anything stupid with that.
OK, so that's another way that you can deal with multiple files.